package Day04;

import java.util.Scanner;

public class commondBySwitch {
    public static void main(String[] args) {

       Scanner scan=new Scanner(System.in);//扫描;

        System.out.println("请选择功能：1.存款 2.取款 3.转账 .4退出");

        int comm =scan.nextInt();

        switch(comm){
            case 1:
                System.out.println("存款业务...");
                break;
            case 2:
                System.out.println("取款业务...");
                break;
            case 3:
                System.out.println("转账业务...");
                break;
            case 4:
                System.out.println("退出成功");
                break;
            default:
                System.out.println("输入错误！");

        }
        if(comm==1){
            System.out.println("存款业务...");
        }else if(comm==2){
            System.out.println("");
        }else if(comm==3){
            System.out.println("");
        }else if(comm==4){
            System.out.println("");
        }else{
            System.out.println("输出错误！");
        }













        /* Scanner com=new Scanner(System.in);
        System.out.println("您的年龄是：");
        int age =com.nextInt();
        System.out.println("您的年龄是："+age);
        String dizhi=com.next();
        System.out.println("您的地址是："+dizhi);*/





    }
}
